<template>
  <div class="home">
    <div class="home_wrapper">
      <div class="home_header">
        <div class="menu_container">
          <el-button @click="drawer = true" type="primary" class="menu_button">
            <img src="../assets/menu.svg" alt />
          </el-button>
        </div>
        <!-- 弹出框 -->
        <el-drawer direction="ltr" title="我是标题" :visible.sync="drawer" :with-header="false">
          <div class="top_items">
            <div>手机</div>
            <div>笔记本电脑</div>
            <div>平板&穿戴</div>
            <div>智能居家</div>
            <div>配件</div>
            <div>企业购</div>
          </div>
        </el-drawer>

        <div class="header_img">
          <img src="https://res.vmallres.com/pimages//sale/2018-11/WTDdguIWgNsNWtK0Q1Z3.png" alt />
          |
          <img
            src="https://res.vmallres.com/pimages//sale/2018-11/dwf3xhEW9pVxGdlNeUIL.png"
            alt
          />
        </div>
        <div class="home_header_nav">
          <div>手机</div>
          <div>笔记本电脑</div>
          <div>平板&穿戴</div>
          <div>智能居家</div>
          <div>配件</div>
          <div>企业购</div>
        </div>
        <div class="home_header_search">
          <input type="text" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {
      drawer: false,
      direction: "rtl"
    };
  },
  methods: {
    handleClose() {
      console.log(123);
    }
  }
};
</script>

<style scoped>
.top_items {
  width: 100%;
}
.top_items div {
  width: 100%;
  height: 50px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  text-indent: 10px;
}
.menu_top_item {
  width: 100%;
  height: 60px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  text-indent: 2em;
}
.menu_header_container {
  width: 100%;
  height: 64px;
  line-height: 64px;
  text-indent: 2em;
}
.header_wrapper_container {
  width: 100%;
  height: 64px;
  /* background-color: pink; */
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.home {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;
}
.home_wrapper {
  width: 84%;
  height: 64px;
}
.home_header {
  width: 100%;
  height: 64px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
}
.header_img {
  width: 25%;
  height: 64px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.header_img img {
  height: 80%;
}
.home_header_nav {
  width: 45%;
  height: 64px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.home_header_nav div {
  margin: 10px;
}
.home_header_search {
  width: 30%;
  height: 64px;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
}
.home_header_search input {
  width: 80%;
  height: 40px;
  background-color: #eee;
  border-radius: 40px;
  border: 0px;
}
.click_select {
  width: 10%;
  height: 64px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: skyblue;
  display: none;
}
@media screen and (max-width: 768px) {
  .header_img {
    display: none;
  }
  .home_header_nav {
    display: none;
  }
  .home_header_search {
    display: none;
  }
  .click_select {
    display: block;
  }
}

@media screen and (max-width: 1200px) {
  .header_img {
    display: none;
  }
  .home_header_nav {
    display: none;
  }
  .home_header_search {
    display: none;
  }
  .click_select {
    display: block;
    width: 10%;
    height: 64px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: skyblue;
  }
}
</style>